package com.meatball.service.impl

import com.meatball.constant.IOC
import com.meatball.data.dto.SpeechDto
import com.meatball.data.dto.SpeechReqDto
import com.meatball.service.SpeechService
import org.springframework.stereotype.Service

@Service
class SpeechServiceImpl : SpeechService {
    override fun speech(dto: SpeechReqDto): SpeechDto? {
        if (dto.sign == IOC) {
            return SpeechDto(
                speech = ioc(dto.park, dto.hex),
            )
        }
        return null
    }

    /**
     * ioc
     * @param park String 园区
     * @param bytes ByteArray 内容
     * @return String 结果
     */
    private fun ioc(park: String, bytes: ByteArray) : String {
        return ""
    }
}